import RentBillApi from "@/api/RentBillApi";
import { RentBillEntity } from "@/entities/RentBillEntity";

export default class RentBillBusiness {
  static addRentBill(rentBillObj: RentBillEntity.IAddRentBillReq) {
    return RentBillApi.addRentBill(rentBillObj);
  }

  static getRentBillByLandlordId(landlordId: number) {
    return RentBillApi.getRentBillByLandlordId(landlordId);
  }

  static getRentBillByTenantId(tenantId: number) {
    return RentBillApi.getRentBillByTenantId(tenantId);
  }

  static getRentBillByBillDate(billDateObj: RentBillEntity.IRentBillDateReq) {
    return RentBillApi.getRentBillByBillDate(billDateObj);
  }
}
